enum SearchTerm {
  ACTIVITY = "activity",
  DISTRIBUTOR = "distributor",
  SPOKESMAN = "spokesman",
  BRAND = "brand",
  STORE = "store",
}

export const isSearchTerm = (val: any): val is SearchTerm => {
  return [
    SearchTerm.ACTIVITY,
    SearchTerm.DISTRIBUTOR,
    SearchTerm.SPOKESMAN,
    SearchTerm.BRAND,
    SearchTerm.STORE,
  ].includes(val);
};

export default SearchTerm;
